/*
 * UploadTestPanel.h
 *
 *  Created on: 2012-11-3
 *      Author: tutu
 */

#ifndef UPLOADTESTPANEL_H_
#define UPLOADTESTPANEL_H_

#include <QWidget>
#include <QLineEdit>
#include <QCheckBox>
#include <QPushButton>
#include "../requester/TUploadRequester.h"
#include "../requester/TAdvUploadRequester.h"

class UploadTestPanel : public QWidget
{
	Q_OBJECT

// Member
private:
	QLineEdit *_titleInput;
	QCheckBox *_sharedCheckBox;
	QPushButton *_pickButton;
	QPushButton *_uploadButton;
	QPushButton *_advUploadButton;
	TUploadRequesterPointer _requester;
    TAdvUploadRequesterPointer _advRequester;
	QString _filename;

// Method
public:
	UploadTestPanel(QWidget *parent = 0);
	virtual ~UploadTestPanel();

// Slot
private slots:
	void pickButtonClicked();
	void uploadButtonClicked();
	void advUploadButtonClicked();
	void uploadFinished(bool error, TDocumentPointer document);

};

#endif /* UPLOADTESTPANEL_H_ */
